//
//  ZZRouter.h
//  zhengzai-tv
//
//  Created by 孙超 on 16/3/20.
//  Copyright © 2016年 zhengzai.tv. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"
#import "ZZBaseViewController.h"

@interface ZZRouter : NSObject

AS_SINGLETON
- (ZZBaseViewController *)viewControllerForViewModel:(ZZBaseViewModel *)viewModel;
- (void)registViewController:(NSString *)controller withViewModel:(NSString *)viewModel;

- (void)pushViewModel:(ZZBaseViewModel *)viewModel animated:(BOOL)animated;
- (void)popViewModelAnimated:(BOOL)animated;
- (void)popToRootViewModelAnimated:(BOOL)animated;
- (void)presentViewModel:(ZZBaseViewModel *)viewModel animated:(BOOL)animated completion:(void(^)(void))completion;
- (void)dismissViewModelAnimated:(BOOL)animated completion:(void(^)(void))completion;
- (void)resetRootViewModel:(ZZBaseViewModel *)viewModel;

@end
